
********************************************************************************
*
* Readme file for
*
* WHY GOVERNMENTS HAVE THEIR TROOPS TRAINED ABROAD:
* EVIDENCE FROM LATIN AMERICA
*
* By Adam Scharpf
*
* International Studies Quarterly
*
* June 2020
*
********************************************************************************



********************************************************************************
*NOTE
********************************************************************************

- All analyses were done in STATA 15.1/SE
- Running all replication code takes approx. 5 minutes
- Please contact author should you encounter any problems with the replication material



********************************************************************************
*REPLICATION STEPS
********************************************************************************

- To replicate all results in tables and figures (except Figure 10 and Figure SI.2.2, see below) follow these steps:

	-> Download all replication files and store them in same folder
	-> Open "replication_analysis.do" and set working directory in file
	-> If necessary, install required .ado-files as indicated in "replication_analysis.do"
	-> Run file "replication_analysis.do" to replicate all statistical results


- To replicate Figure 10 follow these steps:

	-> Download all replication files and store them in same folder
	-> Open "replication_figure10.do" and set working directory in file
	-> If necessary, install required .ado-files as indicated in "replication_figure10.do"
	-> Run file "replication_figure10.do" to replicate Figure 10


- To replicate Figure SI.2.2 follow these steps:

	-> Download all replication files and store them in same folder
	-> Open "replication_figureSI22.do" and set working directory in file
	-> If necessary, install required .ado-files as indicated in "replication_figureSI22.do"
	-> Run file "replication_figureSI22.do" to replicate Figure SI.2.2



********************************************************************************
* STATA 15.1 DATA FILES (VERSION SE 64-bit x86-64)
********************************************************************************

1. "data_allanalysis.dta": Used to replicate all statistical analyses reported in the manuscript and the supporting information.

2. "data_figure4.dta": Used to replicate Figure 4 in the manuscript.

3. "data_figure7.dta": Used to replicate Figure 7 in the manuscript. 

4. "data_figure8.dta": Used to replicate Figure 8 in the manuscript. 

5. "data_figure10.dta" and "data_figure10coords.dta": Used to replicate Figure 10 in the manuscript. 

6. "data_figureSI22.dta" and "data_figureSI22coords.dta": Used to replicate Figure SI.2.2 in the SI.

7. "data_figureSI41.dta": Used to replicate Figure SI.4.1 in the SI.  

8. "data_tableSI53.dta": Used to replicate Table SI.5.3 in the SI.  

9. "data_figureSI61.dta": Used to replicate Figure SI.6.1 in the SI.     



********************************************************************************
* STATA 15.1 .DO FILES (STATA/SE 15.1 FOR WINDOWS 64-bit x86-64)
********************************************************************************

1. "replication_analysis.do": Commands to be used with the datasets 1-4 and 7-9 in order to replicate:

	-> Table 1 in the manuscript.
	-> Tables SI.1.1 to SI.6.8 in the supporting information.
	-> Figures 2 to Figure 9 in the manuscript.
	-> All Figures in the SI (except Figure SI.2.2)


2. "replication_figure10.do": Commands to be used with the datasets "data_figure10.dta" and "data_figure10coords.dta" in order to replicate:

	-> Figure 10 in the manuscript.


3. "replication_figureSI22.do": Commands to be used with the datasets "data_figureSI22.dta" and "data_figureSI22coords.dta" in order to replicate:

	-> Figure SI.2.2 in the SI.


